﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
using TextEidtorI;

namespace TextEditorI.ViewModels
{
   public class HelpViewModel : ObservableObject
    {
        public ICommand HelpCommand { get; }
        public HelpViewModel()
        {
            HelpCommand = new RelayCommand(DisplayAbout);
        }
        private void DisplayAbout() 
        {
            var HelpAbout = new Window1();
            HelpAbout.DataContext = HelpCommand;
            HelpAbout.ShowDialog();
   
        }
    }
}
